#include <iostream>
#include <cmath>
using namespace std;

const int Len = 343720, Wide = 233333;


int main()
{
	long long t = 1;
	while (1)
	{
		if ((t * 17) % Len == 0 && (t * 15) % Wide == 0)
			break;
		t++;
	}
	cout << 2 * t << endl;

	//cout << sqrt(pow(t * 17, 2)+pow(t * 15, 2));

	printf("%.2llf", 2 * sqrt(pow(t * 17, 2) + pow(t * 15, 2)));
	return 0;
}